package excel;

import com.alibaba.excel.annotation.ExcelProperty;


public class DemoData {

//    设置表头
    @ExcelProperty(value = "学生编号",index = 0)
    private Integer sno;
    @ExcelProperty(value = "学生姓名",index = 1)
    private String name;

    public DemoData() {
    }

    public DemoData(Integer sno, String name) {
        this.sno = sno;
        this.name = name;
    }

    public Integer getSno() {
        return sno;
    }

    public void setSno(Integer sno) {
        this.sno = sno;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "DemoData{" +
                "sno=" + sno +
                ", name='" + name + '\'' +
                '}';
    }
}
